﻿<?xml version="1.0" encoding="UTF-8"?>
<modification application="Heroes of Newerth" appversion="3.0*-*" mmversion="1.3" name="Alt Info Revised" version="3.1.0.285+" description="Revised version of the creep health bars (Alt Info). Please follow the link to see the full description." author="Mertsch" weblink="http://forums.heroesofnewerth.com/showthread.php?84799" updatecheckurl="https://dl.dropbox.com/u/4847480/AltInfoRevised/Version.txt" updatedownloadurl="https://dl.dropbox.com/u/4847480/AltInfoRevised/AltInfoRevised.honmod">
  <incompatibility name="Last Hit Assist" version="*" />
  <incompatibility name="Last Hit Assist (Mertsch Edition)" version="*" />
  <incompatibility name="Bang! Focus Health" version="*" />
  <incompatibility name="Creep Bars" version="*" />
  <applyafter name="MiniUI" />
  <applyafter name="A MiniUI" />
  <applyafter name="xUI" />
  <copyfile name="ui/AltInfoRevisedOptions.package" />
  <copyfile name="ui/scripts/alt_info.lua" />
  <copyfile name="ui/scripts/game_air.lua" />
  <!-- Install core component -->
  <editfile name="ui/game.interface">
    <!-- Add LUA script -->
    <find><![CDATA[<panel name="lod_game_unload_delay"]]></find>
    <insert position="before"><![CDATA[<trigger name="LHAUpdated"/>
    <lua file="/ui/scripts/game_air.lua" />
    ]]></insert>
    <!-- Hook into loading process -->
    <find><![CDATA[/>]]></find>
    <replace><![CDATA[>
        <panel name="AltInfoRevisedGamePanel" noclick="1" onloadlua="LHA:Initialize()"/>
    </panel>]]></replace>
  </editfile>
  <!-- Install alt info modifications -->
  <editfile name="ui/alt_info.interface">
    <find><![CDATA[creep_plate_parent]]></find>
    <find><![CDATA[ x="1" y="1"]]></find>
    <delete />
    <find><![CDATA[ width="-2"]]></find>
    <delete />
    <!--... and insert last hit indicator -->
    <find><![CDATA[</panel>]]></find>
    <insert position="before"><![CDATA[
			    <panel name="lhiwrapper" noclick="1" align="left" height="100%" color="invisible">
				    <panel name="lhi" noclick="1" width="1" align="right" height="100%" color="1 1 1 1"/>
			    </panel>]]></insert>
    <find><![CDATA[ x="1" y="-1"]]></find>
    <delete />
    <find><![CDATA[ width="-2"]]></find>
    <delete />
    <!-- MANA: Make semi transparent -->
    <find><![CDATA[mana_bar]]></find>
    <find><![CDATA[color]]></find>
    <find><![CDATA["]]></find>
    <find><![CDATA["]]></find>
    <insert position="before"><![CDATA[50]]></insert>
    <!-- Make adjustments to glow border -->
    <find><![CDATA[frame]]></find>
    <find><![CDATA[ y="-1" x="0"]]></find>
    <delete />
    <find><![CDATA[align="center"]]></find>
    <insert position="after"><![CDATA[ valign="center"]]></insert>
  </editfile>
  <!-- Install mod options -->
  <editfile name="ui/mod_options_elements.package">
    <find><![CDATA[<!-- INSERT AFTER THIS -->]]></find>
    <insert position="after"><![CDATA[
    <include file="AltInfoRevisedOptions.package"/>]]></insert>
  </editfile>
</modification>